package com.qf.service;

import com.qf.pojo.User;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
public interface UserService {
    /**
     * 检测用户名是否存在
     * @param username
     * @return
     */
    boolean checkUsername(String username);

    /**
     * 注册
     *
     * @param username
     * @param password
     * @param email
     * @param gender
     * @return
     */
    boolean register(String username, String password, String email, String gender);

    User login(String username, String password);
}
